package com.cq.hd.order.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author much
 * @since 2024/09/16 11:20
 */
@TableName(value = "tb_group_buy_order")
@Data
public class TbGroupBuyOrderPo implements Serializable {
    private static final long serialVersionUID = -229935000335499891L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long activeId;

    private Long groupBuyActiveId;

    private Long leadUserId;

    private String leadNickName;

    private String leadMobile;

    // 到期时间
    private LocalDateTime expiredTime;

    // 成团人数
    private Integer groupNum;

    private Integer currentNum;

    // 是否虚拟成团 (0: 否, 1: 是)
    private Integer virtualGroup;

    private Integer rewardType;

    // 直接参团开关 (0: 关闭, 1: 开启)
    private Integer directJoinEnabled;

    // 状态：1-待成团 2-已成团 3-拼团失败
    private Integer status;

    // 免单类型 (0-无，1: 团长免单, 2: 随机免单
    private Integer freeType;

    // 免单处理状态：0-未处理 1-已处理
    private Integer freeState;

    // 成团时间
    private LocalDateTime groupTime;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

}
